import Cookies from 'js-cookie'
import webiste from "@/config/website";
const TokenKey = 'x-access-token-promote'
// var inFifteenMinutes = new Date(new Date().getTime() + 120 * 60 * 1000);  +"_"+webiste.username

export function getToken() {
  return Cookies.get(TokenKey)

}

export function setToken(token) {
  return Cookies.set(TokenKey, token, { expires: new Date(new Date().getTime() + 12000 * 60 * 1000) })
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}
